﻿@using ZhouYu.DreamTour.Web.Models;
@{
    Layout = null;
    var ScenicList = @ViewBag.ScenicList;
    var ScenicPicList = @ViewBag.ScenicPicList;
    Random rd = new Random();
    int number = 0;
    int buy = 0;
}
@foreach (var item in @ScenicList)
{
    number = rd.Next(1,10);
    buy = rd.Next(1, 10);
    <div class="js_con clearfix">

        @foreach (var Pitem in @ScenicPicList)
        {
            if (@item.Id == @Pitem.ScenicSpot_Id)
            {
                <div class="js_l"><a href="/Home/Route_Datails?Pic_Id=@Pitem.Pic_Id&TouristRouteId=@item.Id&Pic_Url=@Pitem.Pic_Url&BeCarefulInfoId=@item.BeCarefulInfoId&HotelId=@item.HotelId"><img src="@Pitem.Pic_Url"></a></div>
            }
        }
        <div class="js_c">
            @foreach (var Pitem in @ScenicPicList)
            {
                if (@item.Id == @Pitem.ScenicSpot_Id)
                {
                    <p><b><a href="/Home/Route_Datails?Pic_Id=@Pitem.Pic_Id&TouristRouteId=@item.Id&Pic_Url=@Pitem.Pic_Url&BeCarefulInfoId=@item.BeCarefulInfoId&HotelId=@item.HotelId">@item.TName</a></b></p>
                }
            }
            <p>@item.RouteIntroduce</p>
            <p><a class="js_pl" href="#"><span>@number</span>条评论</a> <a class="js_gm" href="#"><span>@buy</span>人购买</a></p>
        </div>
        <div class="js_r">
            <p><span class="fn_o">￥</span><b>@item.Price</b>起</p>
            <p class="y_price">￥@item.DiscountPrice <span>4.7折</span></p>
        </div>
    </div>
}
